-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze completion site re: trailing parens #680
base: main
Are you sure you want to change the base?
Conversation
}, | ||
"sourceLanguages": ["rust"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a neutral-to-positive move for us.
And fix a bug with imports environment functions not respecting `parameter_hints`
It seems obvious to me that we are testing a feature that "officially" lives here now
@DavisVaughan I merged your proposals in here, tweaked tests a bit, and added a note re: binary help. I remain intrigued by the connection to the ark/crates/ark/src/lsp/completions/sources/utils.rs Lines 94 to 168 in ca19105
That being said, I'm happy to get this PR merged in and defer any further thought or refactoring on this matter to the work on #681. |
Addresses posit-dev/positron#1818
Addresses posit-dev/positron#2338
Closes #369 (I just came across this earlier effort that stalled out in draft from)
I think of this as a "big and dumb" solution to this problem. But it works! The discussion I want to have is basically hinted at in #1818. I suspect it's time to create some formal
CompletionOption
struct that gets formed (probably) inprovide_completions()
that contains some analysis of the completion site. This will then be passed down to all the lower level functions that marshal completions.Summary on what we decided together:
bigsmall and dumb solution along these lines, to enjoy immediate improvements in our completions for?
and insidedebug()
and friends.